package com.ado.abyss.core.manager;

import com.ado.abyss.core.dal.model.SysLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author adonais
 * @date 2020/7/9
 * @description SysLogManager
 **/
public interface SysLogManager extends IService<SysLog> {

    /**
     *
     * @return
     */
    List<SysLog> findAll();

    /**
     *
     * @param id
     * @return
     */
    SysLog findById(Long id);

    /**
     *
     * @param id
     * @return
     */
    boolean deleteById(Long id);

    /**
     *
     * @param sysLogs
     * @return
     */
    boolean saveLogBatch(List<SysLog> sysLogs);

    /**
     *
     * @param sysLog
     * @return
     */
    boolean saveLog(SysLog sysLog);
}
